home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / mui / MCC_SettingsWi.lha / MCC_SettingsWindow / Sources / SettingsWindow_mcc.lh < prev    next >
Text File  |  1998-07-19  |  5KB  |  171 lines

  1. #ifndef SETTINGSWINDOW_MCC_H
  2. #define SETTINGSWINDOW_MCC_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_MENU_PROJECT 0
  36. #define MSG_MENU_PROJECT_OPEN 1
  37. #define MSG_MENU_PROJECT_OPEN_SHORT 2
  38. #define MSG_MENU_PROJECT_SAVEAS 3
  39. #define MSG_MENU_PROJECT_SAVEAS_SHORT 4
  40. #define MSG_MENU_PROJECT_QUIT 5
  41. #define MSG_MENU_PROJECT_QUIT_SHORT 6
  42. #define MSG_MENU_EDIT 7
  43. #define MSG_MENU_EDIT_DEFAULTS 8
  44. #define MSG_MENU_EDIT_DEFAULTS_SHORT 9
  45. #define MSG_MENU_EDIT_LASTSAVED 10
  46. #define MSG_MENU_EDIT_LASTSAVED_SHORT 11
  47. #define MSG_MENU_EDIT_RESTORE 12
  48. #define MSG_MENU_EDIT_RESTORE_SHORT 13
  49. #define MSG_BUTTON_SAVE 14
  50. #define MSG_BUTTON_USE 15
  51. #define MSG_BUTTON_TEST 16
  52. #define MSG_BUTTON_CANCEL 17
  53. #define MSG_ASLREQ_LOAD 18
  54. #define MSG_ASLREQ_SAVEAS 19
  55.  
  56. #endif /* CATCOMP_NUMBERS */
  57.  
  58.  
  59. /****************************************************************************/
  60.  
  61.  
  62. #ifdef CATCOMP_STRINGS
  63.  
  64. #define MSG_MENU_PROJECT_STR "Project"
  65. #define MSG_MENU_PROJECT_OPEN_STR "Open..."
  66. #define MSG_MENU_PROJECT_OPEN_SHORT_STR "O"
  67. #define MSG_MENU_PROJECT_SAVEAS_STR "Save As..."
  68. #define MSG_MENU_PROJECT_SAVEAS_SHORT_STR "A"
  69. #define MSG_MENU_PROJECT_QUIT_STR "Quit"
  70. #define MSG_MENU_PROJECT_QUIT_SHORT_STR "Q"
  71. #define MSG_MENU_EDIT_STR "Edit"
  72. #define MSG_MENU_EDIT_DEFAULTS_STR "Reset To Defaults"
  73. #define MSG_MENU_EDIT_DEFAULTS_SHORT_STR "D"
  74. #define MSG_MENU_EDIT_LASTSAVED_STR "Last Saved"
  75. #define MSG_MENU_EDIT_LASTSAVED_SHORT_STR "L"
  76. #define MSG_MENU_EDIT_RESTORE_STR "Restore"
  77. #define MSG_MENU_EDIT_RESTORE_SHORT_STR "R"
  78. #define MSG_BUTTON_SAVE_STR "Save"
  79. #define MSG_BUTTON_USE_STR "Use"
  80. #define MSG_BUTTON_TEST_STR "Test"
  81. #define MSG_BUTTON_CANCEL_STR "Cancel"
  82. #define MSG_ASLREQ_LOAD_STR "Load settings..."
  83. #define MSG_ASLREQ_SAVEAS_STR "Save settings as..."
  84.  
  85. #endif /* CATCOMP_STRINGS */
  86.  
  87.  
  88. /****************************************************************************/
  89.  
  90.  
  91. #ifdef CATCOMP_ARRAY
  92.  
  93. struct CatCompArrayType
  94. {
  95.     LONG   cca_ID;
  96.     STRPTR cca_Str;
  97. };
  98.  
  99. static const struct CatCompArrayType CatCompArray[] =
  100. {
  101.     {MSG_MENU_PROJECT,(STRPTR)MSG_MENU_PROJECT_STR},
  102.     {MSG_MENU_PROJECT_OPEN,(STRPTR)MSG_MENU_PROJECT_OPEN_STR},
  103.     {MSG_MENU_PROJECT_OPEN_SHORT,(STRPTR)MSG_MENU_PROJECT_OPEN_SHORT_STR},
  104.     {MSG_MENU_PROJECT_SAVEAS,(STRPTR)MSG_MENU_PROJECT_SAVEAS_STR},
  105.     {MSG_MENU_PROJECT_SAVEAS_SHORT,(STRPTR)MSG_MENU_PROJECT_SAVEAS_SHORT_STR},
  106.     {MSG_MENU_PROJECT_QUIT,(STRPTR)MSG_MENU_PROJECT_QUIT_STR},
  107.     {MSG_MENU_PROJECT_QUIT_SHORT,(STRPTR)MSG_MENU_PROJECT_QUIT_SHORT_STR},
  108.     {MSG_MENU_EDIT,(STRPTR)MSG_MENU_EDIT_STR},
  109.     {MSG_MENU_EDIT_DEFAULTS,(STRPTR)MSG_MENU_EDIT_DEFAULTS_STR},
  110.     {MSG_MENU_EDIT_DEFAULTS_SHORT,(STRPTR)MSG_MENU_EDIT_DEFAULTS_SHORT_STR},
  111.     {MSG_MENU_EDIT_LASTSAVED,(STRPTR)MSG_MENU_EDIT_LASTSAVED_STR},
  112.     {MSG_MENU_EDIT_LASTSAVED_SHORT,(STRPTR)MSG_MENU_EDIT_LASTSAVED_SHORT_STR},
  113.     {MSG_MENU_EDIT_RESTORE,(STRPTR)MSG_MENU_EDIT_RESTORE_STR},
  114.     {MSG_MENU_EDIT_RESTORE_SHORT,(STRPTR)MSG_MENU_EDIT_RESTORE_SHORT_STR},
  115.     {MSG_BUTTON_SAVE,(STRPTR)MSG_BUTTON_SAVE_STR},
  116.     {MSG_BUTTON_USE,(STRPTR)MSG_BUTTON_USE_STR},
  117.     {MSG_BUTTON_TEST,(STRPTR)MSG_BUTTON_TEST_STR},
  118.     {MSG_BUTTON_CANCEL,(STRPTR)MSG_BUTTON_CANCEL_STR},
  119.     {MSG_ASLREQ_LOAD,(STRPTR)MSG_ASLREQ_LOAD_STR},
  120.     {MSG_ASLREQ_SAVEAS,(STRPTR)MSG_ASLREQ_SAVEAS_STR},
  121. };
  122.  
  123. #endif /* CATCOMP_ARRAY */
  124.  
  125.  
  126. /****************************************************************************/
  127.  
  128.  
  129. struct LocaleInfo
  130. {
  131.     APTR li_LocaleBase;
  132.     APTR li_Catalog;
  133. };
  134.  
  135.  
  136. #ifdef CATCOMP_CODE
  137.  
  138. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  139. {
  140. LONG   *l;
  141. UWORD  *w;
  142. STRPTR  builtIn;
  143.  
  144.     l = (LONG *)CatCompBlock;
  145.  
  146.     while (*l != stringNum)
  147.     {
  148.         w = (UWORD *)((ULONG)l + 4);
  149.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  150.     }
  151.     builtIn = (STRPTR)((ULONG)l + 6);
  152.  
  153. #undef LocaleBase
  154. #define LocaleBase li->li_LocaleBase
  155.     
  156.     if (LocaleBase)
  157.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  158. #undef LocaleBase
  159.  
  160.     return(builtIn);
  161. }
  162.  
  163.  
  164. #endif /* CATCOMP_CODE */
  165.  
  166.  
  167. /****************************************************************************/
  168.  
  169.  
  170. #endif /* SETTINGSWINDOW_MCC_H */
  171.